//
//  AttendanceContentTableViewCell.swift
//  BellManage
//
//  Created by Bestsch on 16/4/13.
//  Copyright © 2016年 wsl. All rights reserved.
//

import UIKit

class AttendanceContentTableViewCell: UITableViewCell {

    var userTX: UIImageView!
    var userName: UILabel!
    var icon: UIImageView!
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        self.backgroundColor = UIColor.white
        setUp()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    func setUp() {
        
        userTX = UIImageView.init(frame: CGRect(x: 20, y: 10, width: 30, height: 30))
        userTX.layer.cornerRadius = 15
        
        userName = UILabel.init(frame: CGRect(x: userTX.frame.maxX + 10, y: 10, width: screenW - 160 , height: 30))
        userName.textColor = UIColor.darkText
        userName.font = UIFont.systemFont(ofSize: 14)
        userName.textAlignment = NSTextAlignment.left
        
        icon = UIImageView.init(frame: CGRect(x: screenW - 90, y: 12.5, width: 25, height: 25))
        icon.image = UIImage.init(named: "kaoqin1")
        
        self.contentView.addSubview(userTX)
        self.contentView.addSubview(userName)
        self.contentView.addSubview(icon)
    }
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
